package com.djl.sqtg.service.impl;

import com.djl.sqtg.entity.Category;
import com.djl.sqtg.entity.Goods;
import com.djl.sqtg.mapper.CategoryMapper;
import com.djl.sqtg.service.ICatecoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CatecoryServiceImpl implements ICatecoryService {
    @Autowired
    private CategoryMapper categoryMapper;


    @Override
    public List<Category> getAllCategory() {
        return categoryMapper.getAllCategory();
    }

    @Override
    public List<Goods> getCategoryGoodsById(Integer gcid) {
        return categoryMapper.getCategoryGoodsById(gcid);
    }


}
